package com.ruoyi.kubernetes.service.impl;

import io.fabric8.kubernetes.client.DefaultKubernetesClient;
import io.fabric8.kubernetes.client.KubernetesClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class KubernetesClientService {

    private KubernetesClient kubernetesClient;

    public KubernetesClient getKubernetesClient(){
        if (kubernetesClient==null){
            kubernetesClient = new DefaultKubernetesClient();
        }
        return kubernetesClient;
    }
}
